package org.rico.springboot.mybatis.mapper.user;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.rico.springboot.mybatis.model.User.User;

/**
 * Created by rico on 2017/9/11.
 */
@Mapper
public interface UserMapper {

    @Select("SELECT * FROM user WHERE username=#{username}")
    User query(@Param("username") String username);

}
